<?php
/**
 * The Sidebar containing the primary and secondary widget areas.
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0
 */
?>
<div id="primary" class="widget-area" role="complementary">
	<ul class="xoxo">
		<li id="archives" class="widget-container">
			<h3 class="widget-title">Archives</h3><ul>
			<?
			$currentMonth = date('n');
			$currentYear = date('Y');
			for ($i = 0; $i < 12; $i++) {
				?><li><a href="<?=cba_get_month_link($currentYear, $currentMonth)?>">
					<?=date('F Y', mktime(0, 0, 0, $currentMonth, 1, $currentYear))?>
				</a></li><?
				$currentMonth--;
				if ($currentMonth == 0) {
					$currentMonth = 12;
					$currentYear--;
				}
			}
			
		?></li>
	</ul>
</div><!-- #primary .widget-area -->

